package org.xenon.vote.model.pojo.vo;

import org.xenon.vote.config.MailConfig;

import javax.validation.constraints.NotNull;

/**
 * 封装了邮件内容和所需配置的一封完整邮件
 */
public class MailMsg {
    @NotNull
    MailConfig cfg;
    @NotNull
    Mail mail;

    public MailMsg(@NotNull MailConfig cfg,
                   @NotNull Mail mail) {
        this.cfg = cfg;
        this.mail = mail;
    }

    public MailConfig getCfg() {
        return cfg;
    }

    public void setCfg(MailConfig cfg) {
        this.cfg = cfg;
    }

    public Mail getMail() {
        return mail;
    }

    public void setMail(Mail mail) {
        this.mail = mail;
    }
}
